package org.android.brasil.projetos.spacehero.andengine;

import org.anddev.andengine.entity.Entity;
import org.android.brasil.projetos.spacehero.base.IGameEntity;

public class AndEngineGameEntity implements IGameEntity {
	
	private Entity mEntity;
	
	public Entity getEntity(){
		return this.mEntity;
	}
	
	@Override
	public float getX(){
		
		return this.mEntity.getX();
	}
	
	@Override
	public float getY(){
		
		return this.mEntity.getY();
	}
	
	@Override
	public void setPosition(float pX, float pY) {
		
		this.mEntity.setPosition(pX, pY);
	}
	
	@Override
	public void setRotation(float pRotation) {

		this.mEntity.setRotation(pRotation);		
	}
	
	public AndEngineGameEntity(Entity pEntity)
	{
		this.mEntity = pEntity;
	}
}
